package com.sduept.i1.model;

import java.util.Date;

public class Firmware {
    private String id;
    private String identification; //设备编号
    private int firmwareType; //升级类型，0为固件，1为模型
    private String firmwareName; //固件名称
    private String firmwareVersion; //固件版本
    private String gridfsId; //固件文件对应存储的gridfs的id
    private String newFirmwareFlag; //固件开始升级标志位, "0"为待升级， "1"为正在升级
    private Date saveTime; //保存时间
    private int currentFrameNo; //正在升级的帧号
    private int totalFrameNo; //正在升级的总帧号，和上面那个一块可以显示升级进度

    public Firmware() {
        this.id = "";
        this.identification = "";
        this.firmwareType = 0;
        this.firmwareName = "";
        this.firmwareVersion = "";
        this.gridfsId = "";
        this.newFirmwareFlag = "";
        this.saveTime = new Date();
        this.currentFrameNo = 0;
        this.totalFrameNo = 0;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public int getFirmwareType() {
        return firmwareType;
    }

    public void setFirmwareType(int firmwareType) {
        this.firmwareType = firmwareType;
    }

    public String getFirmwareName() {
        return firmwareName;
    }

    public void setFirmwareName(String firmwareName) {
        this.firmwareName = firmwareName;
    }

    public String getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public String getGridfsId() {
        return gridfsId;
    }

    public void setGridfsId(String gridfsId) {
        this.gridfsId = gridfsId;
    }

    public String getNewFirmwareFlag() {
        return newFirmwareFlag;
    }

    public void setNewFirmwareFlag(String newFirmwareFlag) {
        this.newFirmwareFlag = newFirmwareFlag;
    }

    public Date getSaveTime() {
        return saveTime;
    }

    public void setSaveTime(Date saveTime) {
        this.saveTime = saveTime;
    }

    public int getCurrentFrameNo() {
        return currentFrameNo;
    }

    public void setCurrentFrameNo(int currentFrameNo) {
        this.currentFrameNo = currentFrameNo;
    }

    public int getTotalFrameNo() {
        return totalFrameNo;
    }

    public void setTotalFrameNo(int totalFrameNo) {
        this.totalFrameNo = totalFrameNo;
    }
}
